<?php
	//Mai Hữu Lợi
	//tham chiếu bởi KhoAnh.js ham
	//trả về cac anh
	session_start();
	include("../../handle/config.php");
	$sql_anh = "SELECT *  FROM ANH WHERE MAALBUM='$_GET[maalbum]' ORDER BY NGAYDANGANH DESC LIMIT 30 OFFSET $_GET[offset]";
	$result_anh=mysqli_query($con,$sql_anh);
	$i=0;
	echo "<ul class='enlarge'>";
	while($row_anh=mysqli_fetch_array($result_anh))
	{
		
		echo "<li style='width:285px; height:285px;float:left; margin:10px;overflow:hidden;'><img style='width:auto; height:300px;'  src='$row_anh[LIENKETANH]'  alt='Deckchairs' />
					<a style='top:5px;right:5px;position:absolute' href='#' onclick=\"xoaanh('$row_anh[MAANH]','$row_anh[TENANH]','$_GET[maalbum]')\">Xóa</a>
					<span>
						<img src='$row_anh[LIENKETANH]' alt='Deckchairs'  />
						
					</span>
					
					</li>";
	}
	echo "</ul>";
?>
